package cn.hushi.one2many;

public class Order {
    private Integer id;
    private String orderno;
    private String product_name;
    private Customer customer;

    public Customer getCustomer() {
        return customer;
    }

    public void setCustomer(Customer customer) {
        this.customer = customer;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderno() {
        return orderno;
    }

    public void setOrderno(String orderno) {
        this.orderno = orderno;
    }

    public String getProduct_name() {
        return product_name;
    }

    public void setProduct_name(String product_name) {
        this.product_name = product_name;
    }

    public Order(String orderno, String product_name) {
        super();
        this.orderno = orderno;
        this.product_name = product_name;
    }


    public Order() {
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", orderno='" + orderno + '\'' +
                ", product_name='" + product_name + '\'' +
                ", cust_id=" + customer.getId()+
                '}';
    }

}
